<?php

namespace app\api\controller\user;

use app\api\controller\Controllers;
use app\api\service\UserManager as UserManagerService;

class UserManager extends Controllers
{
    /**
     * 设置用户朗读
     *
     * @return \think\Response
     */
    public function set(UserManagerService $service)
    {
        return $service->set($this->request->only(['audio_url','bcid'], 'post'))?success():failed('阅读失败');
    }

    /**
     * 设置用户分数
     *
     * @return \think\Response
     */
    public function score(UserManagerService $service)
    {
        return $service->score($this->request->only(['score','bcid'], 'post'))?success():failed('打分失败');
    }

}
